package com.ruoyi.whole.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.vo.PoCommon;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 车辆库存信息
对象 dms_dealer_vehicle_info
 * 
 * @author liuchuanfa
 * @date 2024-03-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DmsDealerVehicleInfo extends PoCommon
{
    private static final long serialVersionUID = 1L;

    /** id */
//    @Excel(name = "id")
//    @TableId(value = "id", type = IdType.ASSIGN_ID)
//    private Long id;

    /** 车架号（车辆唯一标识） */
    @Excel(name = "车架号")
    private String vin;

    /** 车的名称 */
    @Excel(name = "车的名称")
    private String name;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 店端/厂端的库存 */
    @Excel(name = "店端/厂端的库存")
    private String inventoryType;

    /** 车型（小轿车、SUV） */
    @Excel(name = "车型")
    private String vehicleTypeName;

    /** 车辆尺寸（单位米） */
    @Excel(name = "车辆尺寸")
    private Double vehicleSize;

    /** 车辆状态（0厂端在库 1经销商在途 2经销商在库 3已实销上报） */
    @Excel(name = "车辆状态", readConverterExp = "0=厂端在库,1=经销商在途,2=经销商在库,3=已实销上报")
    private Integer vehicleStatus;

    /** 车辆重量（单位千克） */
    @Excel(name = "车辆重量")
    private Double vehicleWeight;

    /** 车辆颜色 */
    @Excel(name = "车辆颜色")
    private String vehicleColor;

    /** 发动机型号 */
    @Excel(name = "发动机型号")
    private String engineType;

    /** 变速箱型号 */
    @Excel(name = "变速箱型号")
    private String transmissionModel;

    /** 出厂年份 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出厂年份", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureYear;

    /** 装载系统 */
    @Excel(name = "装载系统")
    private String loadingSystem;

    /** 芯片类型 */
    @Excel(name = "芯片类型")
    private String chipType;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 保修时长 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保修时长", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warrantyTime;

    /** 消耗能源 */
    @Excel(name = "消耗能源")
    private String consumptionEnergy;

    /** 每公里费用 */
    @Excel(name = "每公里费用")
    private Double costPerKilometer;

    /** 审核人id */
    @Excel(name = "审核人id")
    @TableField(value = "auditor_id", fill = FieldFill.INSERT_UPDATE)
    private Long auditorId;

    /** 审核人名称 */
    @Excel(name = "审核人名称")
    @TableField(value = "auditor_name", fill = FieldFill.INSERT_UPDATE)
    private String auditorName;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "auditor_time", fill = FieldFill.INSERT_UPDATE)
    private Date auditorTime;
}
